<template>
  <div>
      <button @click="fun()">点我触发中央事件总线</button>
  </div>
</template>

<script>
import Eventbus from "@/eventbus"
export default {
    methods:{
        fun(){
            Eventbus.$emit("zizi","我是同胞传值")
        }
    }

}
</script>

<style>

</style>